﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using WebBanHang.Models;

namespace WebBanHang.Controllers
{
    public class SideBoxController : Controller
    {
        public HNCSolutionsEntities db = new HNCSolutionsEntities();

        public ActionResult Index()
        {
            return View();
        }


        public PartialViewResult _Catergories()
        {
            var categories = this.db.NhomSanPhams.OrderBy(nsp => nsp.ThuTu);
            return PartialView(categories);
        }

        public PartialViewResult _Search()
        {
            var categories = this.db.NhomSanPhams.OrderBy(nsp => nsp.ThuTu);
            return PartialView(categories);
        }
    }
}
